package com.be.beadmin.system.service;

import com.be.beadmin.system.util.ApiUrlProperties;
import org.springframework.http.ResponseEntity;
import org.springframework.web.client.RestTemplate;

import java.util.Date;
import java.util.Map;

public interface AuthorizeService {
    String getAuthorizeCode(String clientid, String clientsecret);
    void getLoginCode(String userCode, String entcode, String orgcode, String code);

    void getProjectInfo(String token, String sqlString) throws Exception;

    boolean checkTime(Date date);

    String getTOKEN();

    ResponseEntity<Map> executeHttpRequest(String token, String sqlString, ApiUrlProperties apiUrlProperties, RestTemplate restTemplate);

    void getProductOrderInfo(String token, String sqlString) throws Exception;

    void getMaterialBasicInfo(String token, String sqlString) throws  Exception;

    void getPurchaseOrderInfo(String token, String sqlString) throws Exception;

    ResponseEntity<Map> executeIssueRequest(String token, String sqlString, ApiUrlProperties apiUrlProperties, RestTemplate restTemplate);

    ResponseEntity<Map> executeRcvRptRequest(String token, String sqlString, ApiUrlProperties apiUrlProperties, RestTemplate restTemplate);

}
